<?php

function info($texte)
{
	$chaine = new arrondis();
	$chaine->texte = "<table style=\"width: 100%;\"><tr><td style=\"width: 36px;\" valign=\"top\"><img src=\"images/info.png\" style=\"width: 36px; height: 36px;\"></td><td style=\"padding: 0 0 0 4px;\" valign=\"top\" align=\"left\">".$texte."</td></tr></table>";
	$chaine->bordure = "#242424";
	$chaine->fond = "#4169E1";
	$chaine->ecriture = "#FFFFFF";
	
	return $chaine->construire();
}

function erreur($texte)
{
	$chaine = new arrondis();
	$chaine->texte = "<table style=\"width: 100%;\"><tr><td style=\"width: 36px;\" valign=\"top\"><img src=\"images/erreur.png\" style=\"width: 36px; height: 36px;\"></td><td style=\"padding: 0 0 0 4px;\" valign=\"top\" align=\"left\">".$texte."</td></tr></table>";
	$chaine->bordure = "#242424";
	$chaine->fond = "#B22222";
	$chaine->ecriture = "#FFFFFF";
	
	return $chaine->construire();
}

function succes($texte)
{
	$chaine = new arrondis();
	$chaine->texte = "<table style=\"width: 100%;\"><tr><td style=\"width: 36px;\" valign=\"top\"><img src=\"images/succes.png\" style=\"width: 36px; height: 36px;\"></td><td style=\"padding: 0 0 0 4px;\" valign=\"top\" align=\"left\">".$texte."</td></tr></table>";
	$chaine->bordure = "#242424";
	$chaine->fond = "#32CD32";
	$chaine->ecriture = "#FFFFFF";
	
	return $chaine->construire();
}

function note($texte)
{
	$chaine = new arrondis();
	$chaine->texte = "<table style=\"width: 100%;\"><tr><td style=\"width: 36px;\" valign=\"top\"><img src=\"images/note.png\" style=\"width: 36px; height: 36px;\"></td><td style=\"padding: 0 0 0 4px;\" valign=\"top\" align=\"left\">".$texte."</td></tr></table>";
	$chaine->bordure = "#242424";
	$chaine->fond = "#FFFFFF";
	$chaine->ecriture = "#242424";
	
	return $chaine->construire();
}

function alerte($texte)
{
	$chaine = new arrondis();
	$chaine->texte = "<table style=\"width: 100%;\"><tr><td style=\"width: 36px;\" valign=\"top\"><img src=\"images/alerte.png\" style=\"width: 36px; height: 36px;\"></td><td style=\"padding: 0 0 0 4px;\" valign=\"top\" align=\"left\">".$texte."</td></tr></table>";
	$chaine->bordure = "#242424";
	$chaine->fond = "#FF8C00";
	$chaine->ecriture = "#FFFFFF";
	
	return $chaine->construire();
}

function arrondis($texte)
{
	global $couleur;

	$chaine = new arrondis();
	$chaine->texte = $texte;
	$chaine->bordure = $couleur['18'];
	$chaine->fond = $couleur['17'];
	$chaine->ecriture = $couleur['16'];
	
	return $chaine->construire();
}

function arrondis_1($titre, $texte)
{
	global $couleur;

	$chaine = new arrondis();
	$chaine->texte = $titre;
	$chaine->coins = array('1', '0', '1', '1');
	$chaine->bordure = $couleur['12'];	
	$chaine->fond = $couleur['11'];
	$chaine->ecriture = $couleur['10'];

	$temp = "<div style=\"padding: 0 4px 0 4px;\">".$texte."</div><br/>".$chaine->construire();

	$chaine = new arrondis();
	$chaine->texte = $temp;
	$chaine->bordure = $couleur['18'];
	$chaine->fond = $couleur['17'];
	$chaine->ecriture = $couleur['16'];
	
	return $chaine->construire();
}

function arrondis_2($titre, $texte)
{
	global $couleur;

	$chaine = new arrondis();
	$chaine->texte = $titre;
	$chaine->coins = array('1', '1', '0', '1');
	$chaine->bordure = $couleur['12'];	
	$chaine->fond = $couleur['11'];
	$chaine->ecriture = $couleur['10'];

	$temp = $chaine->construire()."<br/><div style=\"padding: 0 4px 0 4px;\">".$texte."</div>";

	$chaine = new arrondis();
	$chaine->texte = $temp;
	$chaine->bordure = $couleur['18'];
	$chaine->fond = $couleur['17'];
	$chaine->ecriture = $couleur['16'];
	
	return $chaine->construire();
}

?>